<template>
  <div style="padding: 20px">
      <p>
        <span><van-icon name="comment-o" />成功案例</span>
        <span style="margin-left: 20px">
          <van-icon name="notes-o" />
          {{ detail.createTime }}
        </span>
        <van-divider />
      </p>
    <van-image
        width="100%"
        height="10rem"
        fit="contain"
        :src="detail.picCover"
    />
    <ul style="list-style: square">
      <li style="margin-left: 20px;">{{ detail.patientName }}&emsp;{{detail.patientAge}}岁&emsp;{{detail.patientSex}} </li>
      <li style="margin-left: 20px;">已上课时 | {{detail.courseTime}}</li>
      <li style="margin-left: 20px;">临床诊断 | {{detail.clinicalDiagnosis}}</li>
    </ul>
    <van-divider />
    <van-cell title="治疗师日记">
      <template #right-icon>
        <van-button
            @click="$router.push('/yuyue')"
            size="mini" type="primary">
          预约评估
        </van-button>
      </template>
    </van-cell>
    <div v-html="detail.treatmentDiary"></div>
  </div>
</template>

<script>
export default {
  name: "anlidetail",
  data() {
    return {
      detail:{}
    }
  },
  created() {
    this.detail = JSON.parse(localStorage.getItem('anlidetail'))
    console.log(this.detail)
  }
}
</script>

<style scoped>

</style>
